package com.example.isoftservice.mapper;



import com.example.isoftservice.pojos.Dealer;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * ClassNmae:TestMapper
 * Descriptiopn:
 *
 * @Create 2023/10/25 8:19
 * @Author yidao
 */

@Mapper
public interface DealerMapper {

    //查询经销商信息
    List<Map<String,Object>> select(Dealer dealer);
    //查询经销商类别信息
    List<Map<String,Object>> selectType();

    //查询机构大类信息
    List<Map<String,Object>> selectInstitutionBigCategoryName();

    //根据大类查询小类信息
    List<Map<String,Object>> selectInstitutionSmallByBig(Dealer dealer);


    //删除经销商信息
    Integer delete(Dealer dealer);

    //添加经销商信息
    Integer insert(Dealer dealer);

    //更新经销商信息
    Integer update(Dealer dealer);


}
